<template>
    <div class="tickIndex">
        <span>{{ title }}</span>
    </div>
</template>

<script lang='ts' setup>

defineProps({
    title: {
        type: String,
        default: () => ''
    }
})
</script>

<style lang="scss" scoped>
.tickIndex {
    position: relative;
    margin-bottom: 30px;
    width: 100px;
    height: 40px;
    border-radius: 9px;
    text-align: center;
    background: linear-gradient(#237de4, #0031a2);

    span {
        color: #fff;
        font-size: 20px;
        line-height: 40px;
    }
}

.tickIndex::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffa71b;
}
</style>